import request from '@/utils/request'

// 修改文章信息
export function updateDeliveryById(data) {
  return request({
    url: '/shop/delivery',
    method: 'put',
    data: data
  })
}
// -------------------------------------------------------------------------
// 查询订单收货信息列表
export function listDelivery(query) {
  return request({
    url: '/shop/delivery/list',
    method: 'get',
    params: query
  })
}

// 查询订单收货信息详细
export function getDelivery(id) {
  return request({
    url: '/shop/delivery/' + id,
    method: 'get'
  })
}

// 新增订单收货信息
export function addDelivery(data) {
  return request({
    url: '/shop/delivery/addAfter',
    method: 'post',
    data: data
  })
}

// 修改订单收货信息
export function updateDelivery(data) {
  return request({
    url: '/shop/delivery',
    method: 'put',
    data: data
  })
}

// 删除订单收货信息
export function delDelivery(id) {
  return request({
    url: '/shop/delivery/' + id,
    method: 'delete'
  })
}
